*** Settings ***
Variables   ../../../config/config.py
Library     Remote    127.0.0.1:8271    # 192.168.81.142:8271
Library     Collections



*** Keywords ***
login_system_robot
    [Arguments]    ${user_name}       ${password}
    [Documentation]    ${user_name}: 用户名称
    ...    ${password} ：密码
    ${ele_name}     common_find_element     ${username_input}
    new_sendkeys    ${ele_name}     ${user_name}
    ${ele_pwd}     common_find_element  ${elements}[login_page][password]
    new_sendkeys    ${ele_pwd}     ${password}
    ${ele_login_button}     common_find_element  ${elements}[login_page][login_button]
    new_click       ${ele_login_button}

登录OCMS系统
    #获取浏览器驱动
    get_chrome
    #打开首页
    open    ${ocms_login_url}
    log to console      打开浏览器
    :FOR    ${i}    IN RANGE        10
    \       new_click      ${logo_image}
    END
    sleep    5
    new_click      ${pwd_login_btn}
    new_sendkeys    ${username_input}     ${login_username}
    new_sendkeys    ${password_input}      ${login_password}
    new_sendkeys    ${verificationCode_input}       9999
    new_click       ${button_login}
    sleep    5
#    is_text_in_value    ${title_text}     雪花OCMS订单协同管理系统

#进入方案创建页


